package com.ruoyi.common.core.constant;

/**
 * 缓存的key 常量
 * 
 * @author fkmalls
 */
public class CacheConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * Bac用户登录Token缓存前缀
     */
    public final static String BAC_LOGIN_TOKEN_PREFIX = "bac_login_tokens:";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户账号字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 用户名称字段
     */
    public static final String DETAILS_REALNAME = "real_name";

    /**
     * 所属部门id
     */
    public static final String DETAILS_DEPT_ID = "dept_id";

    /**
     * 所属部门名称
     */
    public static final String DETAILS_DEPT_NAME = "dept_name";

    /**
     * 所属公司id
     */
    public static final String DETAILS_COMPANY_ID = "company_id";

    /**
     * 所属公司名称
     */
    public static final String DETAILS_COMPANY_NAME = "company_name";
    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 业务线代码
     */
    public static final String BIZ_HEADER = "biz_code";


    //public static final String CLIENT_TYPE = "fkmalls-client";


    public static final String DETAILS_USER_LANG = "lang";

}
